import AppEditor from './page/editor/index'
import Home from './page/home'
import Preview from './page/preview'
import Test from './page/test'
import BlockGeneratedImage from './page/block_generated_image'

import { BrowserRouter, Routes, Route } from "react-router-dom";

function App() {

  return (
    <div className="App">
      <BrowserRouter>
        <Routes>
          <Route path="/" element={<Home />} />
          <Route path="/test" element={<AppEditor />} />
          <Route path="/editor/:id" element={<Test />} />
          {/* <Route path="/preview" element={<Preview />} /> */}
          <Route path="/block_generated_image" element={<BlockGeneratedImage />} />
        </Routes>
      </BrowserRouter>
    </div>
  )
}

export default App
